package zjitc.service;

import java.util.List;
import zjitc.po.Book;
import zjitc.po.User;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/12 16:55
 * @description:
 */
public interface BookService {

  List<Book> findAllBook();

    List<Book> findAllByPage(int start, int count);

  //
  //int deleteBookByBname(String bname);

  List<Book> searchBookByName(String name,int start,int count);

  int addBookMessage(Book book);

    Book findByBsid(Integer bsid);

  int updateBookMessage(Book book);

  int deleteBookByBsid(int bsid);

  List<Book> findisHotBook();

  List<Book> findisNewBook();

    List<Book> findBookByCategoryName(String categoryname);



  List<Book> findBookByCategoryNameByPage(String categoryname, int start, int count);

  List<Book> findBookFromCambridge(String str, int start, int count);
}
